package com.wzh.stream;

import cn.hutool.core.lang.Dict;
import cn.hutool.core.util.RandomUtil;
import io.swagger.models.auth.In;

import java.util.ArrayList;

/**
 * @description:
 * @author: WZH
 * @time: 2021/11/13 10:10
 */
public class Demo {
    public static void main(String[] args) {


        ArrayList<Integer> list = new ArrayList<>();

        list.add(0);
        list.add(1);
        for (int i = 0; i < 10; i++) {
//            int num  = RandomUtil.randomInt(0, 100);
//            list.add(num);
        }

        Dict dict = new Dict().set("1","张三").set("2","李四");

        dict.filter();

        Integer integer = list.stream().reduce(0,Integer::sum);

        System.out.println(integer);



    }
}
